
function gobackurl(pk){
    const queryString = window.location.search;
    const urlParams = new URLSearchParams(queryString);
    let next = urlParams.get('next');
    if (next){
      next=next.replaceAll('/', '');
    }else{
      next="checkin"
    }
    // const url = '/gotocheckinout/'+pk+'/'+next
    const url = '/'
    window.location.href=url;
    
  }
